﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewRequest.aspx.cs" Inherits="SealApply.NewRequest" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用章申请</title>
    <link rel="Stylesheet" href="../../App_Themes/formValidator2.5/css/validationEngine.jquery.css" />
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("");
            $("#fld_YZRQ").keydown(function (event) {
                return false;
            });

            //判断是否为我的申请
            if (request("Type") == "myrequest") {

                var yzmc = $("#fld_YZMC").val();
                if (yzmc == "0") {
                    $("#lblType").text("公司章");
                }
                if (yzmc == "1") {
                    $("#lblType").text("财务章");
                }
                if (yzmc == "2") {
                    $("#lblType").text("法人章");
                }
                $("#lblType").css("display", "");
                $("#fld_YZMC").css("display", "none");
            }
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="用章申请" processprefix="CIE" tablename="PROC_SEALAPPLY"
                runat="server"></ui:userinfo>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        详细信息
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        用章文件报送单位：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_BSDW" runat="server" CssClass="validate[required]"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        文件页数：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_WJYS" runat="server" CssClass="validate[required,custom[integer]"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        文件份数：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_WJFS" runat="server" CssClass="validate[required,custom[integer]"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        用章数：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_YZS" runat="server" CssClass="validate[required,custom[integer]"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        印章名称：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:DropDownList ID="fld_YZMC" runat="server" CssClass="validate[required]">
                            <asp:ListItem Value="" Text="--请选择--"></asp:ListItem>
                            <asp:ListItem Value="0" Text="公司章"></asp:ListItem>
                            <asp:ListItem Value="1" Text="财务章"></asp:ListItem>
                            <asp:ListItem Value="2" Text="法人章"></asp:ListItem>
                        </asp:DropDownList>
                        <%--<asp:TextBox ID="fld_YZMC" runat="server" CssClass="validate[required]"></asp:TextBox>--%>
                        <asp:Label ID="lblType" style="display:none;" runat="server" Text=""></asp:Label>
                    </td>
                    <td class="td-label">
                        用章日期：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_YZRQ" runat="server" OnClick="WdatePicker()" CssClass="Wdate validate[required]"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        文件名称：<span class="red">*</span>
                    </td>
                    <td class="td-content" colspan="3">
                        <asp:TextBox ID="fld_WJMC" runat="server" Width="87%" CssClass="validate[required]"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" required="true" runat="server"></attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" showaction="false" runat="server"></ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
